﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace IoTCM
{
    public class JsonHost : HostBase
    {
        public JsonHost(JsonSerializer serializer)
            : base(serializer)
        {
        }

        public override string Format
        {
            get { return "json"; }

        }
        public override string MimeType
        {
            get { return "application/json"; }
        }

        public override string GetSerializedNameValuePair(string name, object value)
        {
            return string.Format("{{ \"{0}\":\"{1}\" }}", name, value);

        }
    }
}
